package com.example.financeapi.config.wechat;

import com.example.financeapi.utils.JsonUtils;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * 项目地址
 * @author Alvin
 */
@Data
@ConfigurationProperties(prefix = "project-url")
@Component
public class ProjectUrlConfig {
    /**微信公众平台授权url*/
    public String wechatMpAuthorize;
    /**微信小程序授权url*/
    public String wechatMiniappAuthorize;
    /**打新债系统*/
    public String finance;
    /**微信模版id*/
    private Map<String, String> templateId;

    @Override
    public String toString() {
        return JsonUtils.toJson(this);
    }
}
